
package com.tool.time;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import org.come.Frame.MsgJframe;
import org.come.Jpanel.MsgJapnel;
import org.come.until.FormsManagement;
import org.come.until.MessagrFlagUntil;
import org.come.until.ScrenceUntil;

public class TimeMouslisten
	implements MouseListener
{

	private Limit limit;

	public TimeMouslisten(Limit limit)
	{
		this.limit = limit;
	}

	@Override
    public void mouseClicked(MouseEvent mouseevent)
	{
	}

	@Override
    public void mousePressed(MouseEvent mouseevent)
	{
	}

	@Override
    public void mouseReleased(MouseEvent mouseevent)
	{
	}

	@Override
    public void mouseEntered(MouseEvent e) {
		if (MessagrFlagUntil.ImgFlagImg.equals(MessagrFlagUntil.MOUSE1)) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
		}
		MsgJframe.getJframe().getJapnel().zssxk(limit, ScrenceUntil.Screen_x - 10 - TimeLimit.getLimits().getlimit(limit) * 25, 70);
	}

	@Override
    public void mouseExited(MouseEvent e) {
		if (MessagrFlagUntil.ImgFlagImg.equals(MessagrFlagUntil.MOUSE12)) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
		}
		FormsManagement.HideForm(46);
	}
}
